package utils.string
{
	public class StringFormat
	{
		public function StringFormat()
		{
		}
		
		public static function NumToCurrency(num:int):String
		{
			var str:String=num+'';
			var string:String='';
			for(var i:int=str.length-1;i>=0;i--)
			{
				string=str.charAt(i)+string;
				if((str.length-i)%3==0 && i!=0 && i!=str.length-1)
					string=','+string;
			}
  
			return string;
		}
		
		
	}
}